import request from '@/utils/request'

// 查询体检结果列表
export function listErxamResults(query) {
  return request({
    url: '/medical/ErxamResults/list',
    method: 'get',
    params: query
  })
}

// 查询体检结果详细
export function getErxamResults(id) {
  return request({
    url: '/medical/ErxamResults/' + id,
    method: 'get'
  })
}

// 新增体检结果
export function addErxamResults(data) {
  return request({
    url: '/medical/ErxamResults',
    method: 'post',
    data: data
  })
}

// 修改体检结果
export function updateErxamResults(data) {
  return request({
    url: '/medical/ErxamResults',
    method: 'put',
    data: data
  })
}

// 删除体检结果
export function delErxamResults(id) {
  return request({
    url: '/medical/ErxamResults/' + id,
    method: 'delete'
  })
}
